package com.example.zxw.ui.views


sealed class RequestDataStatus {
    object RefreshIng : RequestDataStatus()
    object RefreshFail : RequestDataStatus()
    object RefreshComplete : RequestDataStatus()

    object LoadMoreIng : RequestDataStatus()
    object LoadMoreFail : RequestDataStatus()
    object LoadMoreComplete : RequestDataStatus()
    object NoMoreData : RequestDataStatus()

    object NoData : RequestDataStatus()
}




sealed class RequestResult<out T> {
    data class Success<T>(val data: T) : RequestResult<T>()

    class Fail(var code: Int, var msg: String) : RequestResult<Nothing>()

    object NoData : RequestResult<Nothing>()
}